package com.plug.repository;

import com.plug.entity.PlugDatasource;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
import java.util.List;

public interface PlugDatasourceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PlugDatasource record);

    int insertSelective(PlugDatasource record);

    PlugDatasource selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PlugDatasource record);

    int updateByPrimaryKey(PlugDatasource record);

    PlugDatasource findByName(@Param("name") String name);



    List<PlugDatasource> pages(@Param("name")String name,@Param("offset")int offset,@Param("limit")int limit);

    int findTotal(@Param("name")String name);

    List<PlugDatasource> findall();


}